# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=samydeluxe
pkgver=2.2ed1bac
pkgrel=6
epoch=1
pkgdesc='Automatic samdump creation script.'
arch=('any')
url='http://github.com/jensp/samydeluxe'
groups=('blackarch' 'blackarch-cracker')
makedepends=('git')
depends=('bash' 'samdump2')
source=("git+https://github.com/jensp/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  rm -rf "$srcdir/$pkgname-build"
  cp -r "$srcdir/$pkgname" "$srcdir/$pkgname-build"
  cd "$srcdir/$pkgname-build"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

